import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;


public class CommentDeleteTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		BufferedReader br;
		try {
			br = new BufferedReader(new FileReader("test.txt"));
			StringBuilder sb = new StringBuilder();
			String line = br.readLine();
			while (line!=null){
				sb.append(line);
				sb.append("\n\r\t\r");
				line=br.readLine();
			}
			line = sb.toString();
			ScriptNode s = new ScriptNode();
			line = s.RemoveComments(line);
			System.out.println(line);
		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}


	}

}
